<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<div class="nav_head">
		<div class="nav_two">
			<div class="nav_three">
				<a class="logo_href" href="#"> <img class="logo"
					src="./img/cnodejs_light.svg" />
				</a> 
				<input id="search" value="" class="search" type="text" />
				<ul class="nav_ul">
					<li><a href="#">首页</a></li>
					<li><a href="#">新手入门</a></li>
					<li><a href="#">API</a></li>
					<li><a href="#">关于</a></li>
					<li><a href="regist.jsp">注册</a></li>
					<li><a href="#">登录</a></li>
				</ul>
			</div>
		</div>
	</div>
	<script>
	var search = document.getElementById("search");
	search.onkeydown = function (event) {
        var e = event || window.event;
        if (e && e.keyCode == 13) { //回车键的键值为13
            window.location = "/searchBlogByTitle?title="+this.value;
        }
    }; 
	
	</script>